package com.dc.controller;

import com.dc.handler.haiwanalarm.ModbusRtuMaster;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: TODO 海湾设备管理
 * @date: 2022/10/24 10:43
 * @author: zhang
 **/
@Api(tags = "海湾设备管理")
@RestController
@RequestMapping("/haiWanDevice")
@AllArgsConstructor
public class HaiWanDeviceController {

    private final ModbusRtuMaster modbusRtuMaster;

    @ApiOperation(value = "获取海湾设备信息", notes = "获取海湾设备信息")
    @GetMapping("/getHWDeviceInfo")
    public String getHWDeviceInfo() {
        return modbusRtuMaster.startRequest().toString();
    }
}


